<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>index</title>
<script type="text/javascript">
	function register() {
		window.location.href="<%=request.getContextPath() %>/user/register";
	}
</script>
</head>
<body>
<form action="<%=request.getContextPath() %>/user/login" method="post">
	姓名：<input type="text" name="name"><br/><br/>
	密码：<input type="password" name="password"><br/><br/>
	&nbsp;&nbsp;<input type="submit" value="登录">&nbsp;&nbsp;&nbsp;&nbsp;
	&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" onclick="register()" value="注册"><br/>&nbsp;
</form>

</body>
</html>